<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<meta name="description" content="">
<meta name="author" content="">

<title>WINIT-OAuth2.0授权</title>

<!-- Bootstrap core CSS -->
<link href="js/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/base.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>

	<!-- header -->
	<div id="header">
		<div class="lay-top">
			<div class="lay-top-inner clearfix">
				<i class="logo"></i>
				<div class="text-hide clearfix">
					<i class="logo-line m-lr-20"></i> <span>账户授权</span>
				</div>
			</div>
		</div>
	</div>
	<!-- /header -->
	<!-- content -->

	<div class="m-t-55 clearfix" align="center">
		<div align="center">
			<input type="text" size="80"  id="clientKey"
				name="clientKey" placeholder="请输入客户端ID" autofocus /> 
				<br/>
				<br/>
				<br/>
				<a href="javascript:void(0)" onclick="subgo()" class="confirm-button">开始授权</a>
		</div>

	</div>


	<script>
	
	function subgo(){
		var url="/openapi/oauth2/authorize?response_type=token&client_id="+document.getElementById('clientKey').value+"&redirect_uri=http://www.winit.com.cn&state=987654321&scope=ISP";
		
		window.location.href=url;
	}
	
	</script>

</body>
</html>